package com.itheima.stock.service;

import com.itheima.stock.domain.*;
import com.itheima.stock.pojo.StockBusiness;
import com.itheima.stock.vo.res.R;
import org.springframework.stereotype.Service;

import javax.servlet.http.HttpServletResponse;
import java.util.Date;
import java.util.List;
import java.util.Map;

@Service
public interface StockService {
    public List<StockBusiness> getAllStockBusiness() ;

    R<List<InnerMarketDomain>> getInnerMarketInfos();

    R<List<StockBlockDomain>> getStockBlockInfos();

    R<List<StockUpdownDomain>> getStockUpdownInfos();

    R<List<StockOuterMarketIndexInfoDomain>> getStockOuterMarketIndexInfos();


    R<PageResult<StockUpdownDomain>> getStockUpdownInfosByPages(Integer page, Integer pageSize);

    R<Map> getUpdownCount();


    void print(HttpServletResponse response, Integer page, Integer pageSize);


    R<List<Stock4MinuteDomain>> getStock4MinuteDomain(Integer code);

    R<Map> getTodayPreDayInfos();

    R<Map> getRangeCountByMinutes();

    R<List<Stock4EvrDayDomain>> getStock4EvrDayDomain(String code);

    R<List<Map>> getFuzzyQueryStockCode(String searchStr);

    R<Map> getStockDescribe(String code);


    R<StockDetailBySecondDomain> getStockDetailBySecond(String code);
}
